/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package epaper;

import java.util.Observable;

/**
 *
 * @author Punit
 */
public class WorkProgress extends Observable{
    private int incrAmount =0;
    private static WorkProgress wp = null;

    

    public static WorkProgress getInstance(){
        if(wp == null)
            wp = new WorkProgress();
        return wp;
    }

    public WorkProgress() {
    }

    
    WorkProgress(int i){
        incrAmount = i;
    }


    public void increment(int i){
        setChanged();
        notifyObservers(i);
    }

    public void increment(){
        setChanged();
        notifyObservers(incrAmount);
    }

    public int getIncrAmount() {
        return incrAmount;
    }

    public void setIncrAmount(int incrAmount) {
        this.incrAmount = incrAmount;
    }

    
}
